package org.rcy.ruicingmarket.goods;


import lombok.Data;
import org.rcy.framework.api.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;


/**
*
* @author RuicyWu
*@Date 2021-12-22 14:31:21
*/
@Data
@Entity
@Table(name = "goods")
public class Goods extends BaseEntity {

	private static final long serialVersionUID = 1L;

	private String name; //商品名称

	private Long cid; //商品分类id

	private Integer price_min; //最小单价

	private Integer price_max;//最大单价

	private Long aid; //商品活动id

	private Long sellerId;//所属商家id

	private String img; //商品封面

	private Boolean status;

	private Date createTime;

	private Date updatetime;

	@Transient
	private GoodsDetail goodsDetail; //商品细节信息

	public Goods(){}

}
